package com.health.circle.controller;


import com.health.circle.domain.po.TDepartmentPo;
import com.health.circle.service.ITDepartmentService;
import com.health.common.core.domain.R;

import org.apache.commons.collections4.Get;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 科室信息表 前端控制器
 * </p>
 *
 * @author zzs
 * @since 2024-12-16
 */
@RestController
@RequestMapping("/department")
public class TDepartmentController {

    @Autowired
    private ITDepartmentService service;

    /**
     * 科室信息列表
     * @return
     */
    @GetMapping("/list")
    public R<List<TDepartmentPo>> list(){
        List<TDepartmentPo> list = service.list();
        return R.ok(list);
    }







}
